/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package at.punkt.sentimentanalysis.webservices;

import org.simba.utils.tree.Sentiment;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 *
 * @author lejtovicz
 */
@Controller
public class SimpleFormController {

    @RequestMapping(value = "/", method = RequestMethod.GET)
    public String getStartPage() {
        return "redirect:/testsentiment";
    }

    @RequestMapping(value = "/testsentiment", method = {RequestMethod.POST, RequestMethod.GET})
    public void simpleForm(Model model) {
        model.addAttribute(new Sentiment());
    }

}
